/*
 * @Author: xuetao 3168581151@qq.com
 * @Date: 2025-02-10
 * @LastEditors: xuetao 3168581151@qq.com
 * @LastEditTime: 2025-03-15
 * @Description: 
 */
import 'package:flutter/foundation.dart' show kIsWeb, kReleaseMode;

class AppConfig {
  static late String baseUrl;

  static void initialize() {
    if (kReleaseMode) {
      // 生产环境配置
      baseUrl = 'http://10.26.21.166:3000'; // 生产环境接口
    } else {
      // 开发环境配置
      if (kIsWeb) {
        baseUrl = 'http://localhost:3000'; // Web 开发环境
      } else {
        baseUrl = 'http://10.0.2.2:3000'; // Android 模拟器开发环境
      }
    }
  }
}
